// ==============================================================================
//
// This file is part of the WelHair
//
// Create by Welfony <support@welfony.com>
// Copyright (c) 2013-2014 welfony.com
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
//
// ==============================================================================

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, DropDownViewType) {
    DropDownViewDefault = 0,//默认从0开始
    DropDownViewType1,
    DropDownViewType2,
};

@interface DropDownView : UIView

typedef void (^DisMiss)(DropDownView *dropdownView);
typedef void (^SelectedItem)(NSString *title,DropDownView *dropdownView);

@property (nonatomic, assign) DropDownViewType dropDownViewType;
@property (nonatomic, copy) DisMiss dismiss;
@property (nonatomic, copy) SelectedItem block;

- (id)initWithFrame:(CGRect)frame
      contentHeight:(float) contentHeight;

- (void)showData:(NSArray *)datasource atIndex:(NSInteger)index
     pointToView:(UIView *)view SelectedItem:(SelectedItem)item diss:(DisMiss)diss;

- (void)hide;

@end
